<?php
set_include_path( $_SERVER['DOCUMENT_ROOT'] . 'php/Nadeb');
include 'Nadeb/DataForm/DataForm.php';


$data = array(
	'name' => 'nome que vem do banco',
	'phone' => 'telefone que vem do banco',
);


$form = new DataForm( 'nadeb-form' );
$form->setData( $data );
$form->title( 'Cadastro de Teste' );
$form->form()->action = 'http://www.action.com.br';

$form->add = new InputText( 'name', 'Nome', 'Mateus Martins' );
$form->add = new InputText( 'phone', 'Telefone', '11 6753.5781' );
$form->add = new InputPassword( 'phone', 'Telefone', '11 6753.5781' );
$form->add = new InputHidden( 'idSample', 10 );


// echo '<pre>';
echo $form->get();
// echo '</pre>';

// $form = new InputText( 'name' );